package deployr.cli;

import java.io.*;

public class UsageCommand extends Command {

	public UsageCommand(Command other) {
		super(other);
	}

	@Override
	public int onRun(OutputStream output, String[] args) {
		usage(output);
		return 0;
	}
	
	@Override
	public void usage(OutputStream output) {
		puts(output, "usage: deployr COMMAND [ARGS]");
		puts(output, "");
		puts(output, "The most commonly used deployr commands are:");
		puts(output, "   server    Run server to send updates");
		puts(output, "   update    Send updates to server");
		puts(output, "   run       Run application remotely");
		puts(output, "");
		puts(output, "See 'deployr COMMAND help' for more information on a specific command.");
	}

}
